package com.anjubao.parking.municipal.common.exception;

import com.anjubao.parking.municipal.common.dto.ApiCode;
import com.anjubao.parking.municipal.common.dto.ApiResult;
import org.springframework.http.HttpStatus;

public class ServiceException extends AbstractHttpException {
	private static final long serialVersionUID = 3501273732637394263L;

	public ServiceException(String str) {
		super(str);
		setApiCode(ApiCode.STATUS_INTERNAL_ERROR);
	}

	public ServiceException(String str, Exception e) {
		super(str, e);
		setApiCode(ApiCode.STATUS_INTERNAL_ERROR);
	}
}
